<?php
	defined( "AZ_EXE_" ) or die ( "CORE VARIABLE IS NOT DEFINED." );
	class Session extends AZ {
		public static function start(){
			//session_save_path( APP_FOLDER . "temp" . DS );
			if ( !isset( $_SESSION ) ) session_start() ;
		}
		
		public static function destroy(){
			session_destroy();
		}
		
		public static function exist( $sessionName ){
			if ( isset( $_SESSION ) && $_SESSION[ $sessionName ] ){
				return true;
			}
			return false ;
		}
		
		public static function get( $sessionName ){
			if ( isset( $_SESSION[ $sessionName ] ) ){
				return $_SESSION[ $sessionName ];
			}
			return null ;
		}
		
		public static function set( $sessionName , $value = false ){
			return $_SESSION[ $sessionName ] = $value ;
		}
		
		public static function kill($sessionName){
			unset( $_SESSION[$sessionName]);
		}
	} 
?>